import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import App from './app';
import registerServiceWorker from './registerServiceWorker';//react自带的
import reducer from './reducer';
require ('./static/style/app.css');
require ('./static/style/app2.css');

const store = createStore(reducer, applyMiddleware(thunk));
ReactDOM.render(
    <Provider store={store}>
        <App/>
    </Provider>,
    document.getElementById('app-container')
)

registerServiceWorker();
